﻿using System.Xml.Linq;

namespace SharePhone.Utility
{
    public class XmlUtility
    {
        public static XNamespace SchemaUrl = "http://schemas.microsoft.com/sharepoint/soap/";
        public static XNamespace rs = "urn:schemas-microsoft-com:rowset";
        public static XNamespace Z = "#RowsetSchema";

        public static string GetAttributeValue(XElement element, string attributeName)
        {
            XAttribute attribute = element.Attribute(attributeName);
            if (attribute == null)
                return string.Empty;
            return attribute.Value;
        }
    }
}